#include "VectorTest.h"
#include "CBL_Tuple.h"

#include <iostream>

BEGIN_TEST_CASE_IMPLEMENTATION(CVectorTest)

	Cb::Math::Float4 TestVec1(1,0,0,1);
	Cb::Math::Float4 TestVec2(0,1,0,1);
	Cb::Math::Float4 TestVec3(1,2,3,1);

	Cb::Math::Float4 CrossTest = Cb::Math::Cross(TestVec1, TestVec2);
	float DotTest = Cb::Math::Dot(TestVec2, TestVec3);

	CHECK((CrossTest.X() == 0) &&
		  (CrossTest.Y() == 0) &&
		  (CrossTest.Z() == 1) &&
		  (CrossTest.W() == 1),
		  "> Cross product test failed.")

	CHECK(DotTest == 3, "> Dot product test failed.")
		
END_TEST_CASE_IMPLEMENTATION